<me:UITXTKON x:Class="WPFExcelReport.TP04HZ"
 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls" 
 xmlns:me="clr-namespace:WPFExcelReport" 
 xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT" 
 xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
 xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
 x:Name="TV"
 Loaded="Window_Loaded"
 >
    <me:UITXTKON.Resources>
        <CollectionViewSource x:Key="vwMaster"/>
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:NOTConverter x:Key="not"/>
        <ucd:GB2312Convert8859P1 x:Key="gb2312"/>
    </me:UITXTKON.Resources>
    <Border BorderThickness="0,0,0,2" BorderBrush="Black">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100" />
                <ColumnDefinition Width="100"/>
                <ColumnDefinition Width="50"/>
                <ColumnDefinition Width="700" />
                <ColumnDefinition Width="450" />
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.Row="1" Grid.RowSpan="20" Grid.Column="0">
                <Button Click="EditCommand" Height="20" Margin="5,0,0,0" Width="24" 
 Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource nbv}}"
 >
                    <Button.Background>
                        <ImageBrush ImageSource="/ImagePackage;component/Images/Edit.png" />
                    </Button.Background>
                </Button>
                <Button Click="SaveCommand" Height="20" Margin="5,0,0,0" Width="24"
 Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource bv}}"
 >
                    <Button.Background>
                        <ImageBrush ImageSource="/ImagePackage;component/Images/button_ok.png" />
                    </Button.Background>
                </Button>
                <TextBlock Text="{Binding Source={Localization:Translate Word=后整}}"/>
                <me:TPART Grid.Row="2" Grid.Column="4" Grid.ColumnSpan="2" 
                     x:Name="cPART"
                     IsL4="True"
                     PIND="{Binding PIND,ElementName=TV}"
                     TA41S="{Binding TA11S,ElementName=TV}"
                     TA41DT="{Binding TA11DT,ElementName=TV}"
                     IsEdit="{Binding IsEdit,ElementName=TV}"
                     IsSaved="{Binding IsSaved,ElementName=TV}"
                     />
            </StackPanel>
            <Border Grid.Row="1" Grid.Column="1" BorderThickness="2" BorderBrush="Black">
                <SD:K8888 Grid.Row="1" Grid.Column="1"
 IsCombo="false" EXAUF="{Binding TATR1,ElementName=TV}" 
 />
            </Border>
            <SD:K8888 Grid.Row="1" Grid.Column="2"
 KEYS="FH;BF;"
 KEY="{Binding TA11PD,ElementName=TV}"
 EXAUF="{Binding TA11PD,ElementName=TV}"
 IsEdit="{Binding IsEdit,ElementName=TV}"
 />
            <WrapPanel Grid.Row="1" Grid.Column="3" >

                <SD:K8888
 IsCombo="false" EXAUF="{Binding TATR2,ElementName=TV}"
 IsEdit="{Binding IsEdit,ElementName=TV}"
 />
                <SD:K8888 Grid.Row="2" Grid.Column="2"
 KEYS="ZC;YC;ZS;"
 KEY="{Binding TA21PD,ElementName=TV}"
 EXAUF="{Binding TA21PD,ElementName=TV}"
 IsEdit="{Binding IsEdit,ElementName=TV}"
 />
            </WrapPanel>
            <TextBlock Grid.Row="1" Grid.Column="4" Visibility="Collapsed"
 Text="{Binding TA21S,ElementName=TV}" 
 />
            <TextBlock Grid.Row="1" Grid.Column="5" Visibility="Collapsed"
 Text="{Binding TA21DT,ElementName=TV}" 
 />
            <Border Grid.Row="2" Grid.Column="1" BorderThickness="2" BorderBrush="Black">
                <SD:K8888 Grid.Row="2" Grid.Column="1"
 IsCombo="false" EXAUF="{Binding TATR3,ElementName=TV}" 
 />
            </Border>
            <SD:K8888 Grid.Row="2" Grid.Column="2"
 KEYS="FH;BF"
 KEY="{Binding TA31PD,ElementName=TV}"
 EXAUF="{Binding TA31PD,ElementName=TV}"
 IsEdit="{Binding IsEdit,ElementName=TV}"
 />
            <WrapPanel Grid.Row="2" Grid.Column="3">
                <SD:K8888 IsCombo="false" EXAUF="{Binding TATR4,ElementName=TV}" IsEdit="{Binding IsEdit,ElementName=TV}" />
                <SD:K8888 Grid.Row="2" Grid.Column="2" KEYS="ND;BN;" KEY="{Binding TA41PD,ElementName=TV}"
 EXAUF="{Binding TA41PD,ElementName=TV}"
 IsEdit="{Binding IsEdit,ElementName=TV}"
 />
            </WrapPanel>

            <TextBlock Grid.Row="2" Grid.Column="4" Visibility="Collapsed"
 Text="{Binding TA41S,ElementName=TV}" 
 />
            <TextBlock Grid.Row="2" Grid.Column="5" Visibility="Collapsed"
 Text="{Binding TA41DT,ElementName=TV}" 
 />
            <Border Grid.Row="3" Grid.Column="1" BorderThickness="2" BorderBrush="Black">
                <SD:K8888 Grid.Row="3" Grid.Column="1"
 IsCombo="false" EXAUF="{Binding TATR5,ElementName=TV}"
 IsEdit="{Binding IsEdit,ElementName=TV}"
 />
            </Border>
            <SD:K8888 Grid.Row="3" Grid.Column="2"
 KEYS="FH;BF;"
 KEY="{Binding TA51PD,ElementName=TV}"
 EXAUF="{Binding TA51PD,ElementName=TV}"
 IsEdit="{Binding IsEdit,ElementName=TV}"
 />
            <ex:TXT72 Grid.Row="3" Grid.Column="3"
 Text="{Binding TA52,ElementName=TV,Converter={StaticResource gb2312}}" MaxLength="126" MaxLines="1"
 IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
 />
            <TextBlock Grid.Row="3" Grid.Column="4" Visibility="Collapsed"
 Text="{Binding TA51S,ElementName=TV}" 
 />
            <TextBlock Grid.Row="3" Grid.Column="5" Visibility="Collapsed"
 Text="{Binding TA51DT,ElementName=TV}" 
 />
            <Border Grid.Row="4" Grid.Column="1" BorderThickness="2" BorderBrush="Black">
                <SD:K8888 Grid.Row="4" Grid.Column="1"
 IsCombo="false" EXAUF="{Binding TATR6,ElementName=TV}"
 IsEdit="{Binding IsEdit,ElementName=TV}"
 />
            </Border>
            <SD:K8888 Grid.Row="4" Grid.Column="2"
 KEYS="ND;BN;"
 KEY="{Binding TA61PD,ElementName=TV}"
 EXAUF="{Binding TA61PD,ElementName=TV}"
 IsEdit="{Binding IsEdit,ElementName=TV}"
 />
            <ex:TXT72 Grid.Row="4" Grid.Column="3"
 Text="{Binding TA62,ElementName=TV,Converter={StaticResource gb2312}}" MaxLength="126"
 IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"
 />
            <TextBlock Grid.Row="4" Grid.Column="4" Visibility="Collapsed"
 Text="{Binding TA61S,ElementName=TV}" 
 />
            <TextBlock Grid.Row="4" Grid.Column="5" Visibility="Collapsed"
 Text="{Binding TA61DT,ElementName=TV}" 
 />
            <Border Grid.Row="5" Grid.Column="1" BorderThickness="2" BorderBrush="Black">
                <SD:K8888 Grid.Row="5" Grid.Column="1"
 IsCombo="false" EXAUF="{Binding TATR7,ElementName=TV}"
 IsEdit="{Binding IsEdit,ElementName=TV}"
 />
            </Border>
            <SD:K8888 Grid.Row="5" Grid.Column="2"
 KEYS="S;F;"
 KEY="{Binding TA71PD,ElementName=TV}"
 EXAUF="{Binding TA71PD,ElementName=TV}"
 IsEdit="{Binding IsEdit,ElementName=TV}"
 />
            <WrapPanel Grid.Row="5" Grid.Column="3">
                <SD:K8888
 IsCombo="false" EXAUF="{Binding TATR8,ElementName=TV}"
 IsEdit="{Binding IsEdit,ElementName=TV}"
 />
                <SD:K8888 Grid.Row="2" Grid.Column="2"
 KEYS="ND;BN;"
 KEY="{Binding TA81PD,ElementName=TV}"
 EXAUF="{Binding TA81PD,ElementName=TV}"
 IsEdit="{Binding IsEdit,ElementName=TV}"
 />
            </WrapPanel>
            <TextBlock Grid.Row="5" Grid.Column="4" Visibility="Collapsed"
 Text="{Binding TA81S,ElementName=TV}" 
 />
            <TextBlock Grid.Row="5" Grid.Column="5" Visibility="Collapsed"
 Text="{Binding TA81DT,ElementName=TV}" 
 />

            <me:TP05HZ1 Grid.Row="7" Grid.Column="0" Grid.ColumnSpan="6"
 PIND="{Binding PIND,ElementName=TV}"
 IsEdit="{Binding IsEdit,ElementName=TV}"
 IsSaved="{Binding IsSaved,ElementName=TV}"
 />
        </Grid>
    </Border>
</me:UITXTKON>
